GetWeakStorageUnitRef
TheGetWeakStorageUnitRef
method creates a weak persistent reference to the specified storage unit.
void GetWeakStorageUnitRef ( in ODStorageUnitID embeddedSUID, out ODStorageUnitRef weakRef);
embeddedSUID
- The storage-unit ID of the storage unit whose persistent reference is desired.
weakRef
- The persistent reference to the storage unit specified by the
embeddedSUID
parameter.DISCUSSION
After this method executes successfully, call theSetValue
method to store the resulting persistent reference, returned in theweakRef
output parameter, into the focused value.
- IMPORTANT
- The scope of a persistent reference is limited to the value in which it was created. If you store the persistent reference in a different value, it will almost certainly not refer to the correct storage unit.
![]()
EXCEPTIONS
If the storage-unit cursor for this storage-unit view does not represent a legal focus context for the storage unit that created this storage-unit view, this method throws exceptions raised by the
kODErrIllegalNullStorageUnitInput
- The
embeddedSUID
parameter is null.kODErrUnfocusedStorageUnit
- The focus context of this storage-unit view is not a value.
FocusWithCursor
method of that storage unit.SEE ALSO
TheODStorageUnitID
type (page 903).
TheODStorageUnitRef
type (page 903).
TheODStorageUnitView::GetStrongStorageUnitRef
method (page 743).
TheODStorageUnitView::IsWeakStorageUnitRef
method (page 753).
TheODStorageUnitView::SetValue
method (page 760).
For more information on persistent references, see the chapter on storage in theOpenDoc Programmer's Guide for the MacOS .
Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help